﻿@inherits LayoutComponentBase
@inject Interfaces.IRatScannerUI RatScannerUI
@inject IJSRuntime JSRuntime;
<MudThemeProvider Theme="currentTheme"/>
<MudDialogProvider/>
<MudSnackbarProvider/>

@Body

@code {

	protected override void OnInitialized()
	{
		currentTheme = darkTheme;
	}

	MudTheme currentTheme = new();

	MudTheme defaultTheme = new()
	{
		Palette = new Palette()
		{
			Black = "#27272f",
			Background = "rgba(50,51,61, 0.50)",
			BackgroundGrey = "#27272f",
			Surface = "#373740",
			DrawerBackground = "#27272f",
			DrawerText = "rgba(255,255,255, 0.50)",
			DrawerIcon = "rgba(255,255,255, 0.50)",
			AppbarBackground = "#242f35",
			AppbarText = "rgba(255,255,255, 0.70)",
			TextPrimary = "rgba(255,255,255, 0.70)",
			TextSecondary = "rgba(255,255,255, 0.50)",
			ActionDefault = "#adadb1",
			ActionDisabled = "rgba(255,255,255, 0.26)",
			ActionDisabledBackground = "rgba(255,255,255, 0.12)",
			Divider = "rgba(255,255,255, 0.12)",
			DividerLight = "rgba(255,255,255, 0.06)",
			TableLines = "rgba(255,255,255, 0.12)",
			LinesDefault = "rgba(255,255,255, 0.12)",
			LinesInputs = "rgba(255,255,255, 0.3)",
			TextDisabled = "rgba(255,255,255, 0.2)",
		},
	};

	MudTheme darkTheme = new()
	{
		Palette = new Palette()
		{
			Black = "#27272f",
			Background = "rgba(255,255,255,0.00)",
			BackgroundGrey = "#27272f",
			Surface = "#1e1e1e",
			DrawerBackground = "#27272f",
			DrawerText = "rgba(255,255,255, 0.50)",
			DrawerIcon = "rgba(255,255,255, 0.50)",
			AppbarBackground = "#242f35",
			AppbarText = "rgba(255,255,255, 0.70)",
			TextPrimary = "rgba(255,255,255, 0.90)",
			TextSecondary = "rgba(255,255,255, 0.50)",
			ActionDefault = "#adadb1",
			ActionDisabled = "rgba(255,255,255, 0.26)",
			ActionDisabledBackground = "rgba(255,255,255, 0.12)",
			Divider = "rgba(255,255,255, 0.12)",
			DividerLight = "rgba(255,255,255, 0.06)",
			TableLines = "rgba(255,255,255, 0.12)",
			LinesDefault = "rgba(255,255,255, 0.12)",
			LinesInputs = "rgba(255,255,255, 0.3)",
			TextDisabled = "rgba(255,255,255, 0.2)",
		},
	};

}
